/*
 * Copyright © 2017 Cask Data, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
*/

$rule_row_bg_color: white;
$rule_row_border_color: #cccccc;
$dsv_editor_input_border_color: rgba(0, 0, 0, 0.15);
$drag_bars_color: gray;

.engine-rule {
  &.row {
    border-bottom: 1px solid $rule_row_border_color;
    padding: 7px;
    cursor: pointer;
    padding-left: 0;
    padding-right: 0;
    font-size: 13px;

    > div > :first-child {
      padding-left: 0;
    }

    .icon-bars {
      cursor: move;
      color: $drag_bars_color;
    }

    &.expanded {
      background: $rule_row_bg_color;
      font-weight: bold;

      form {
        padding: 20px 0;
      }

      .dsv-editor-container .dsv-row-container {
        margin: 5px 0;
        input.form-control {
          border: 1px solid $dsv_editor_input_border_color;
        }
        .dsv-input-container {
          width: calc(100% - 50px);

          &.disabled {
            width: 100%;
          }
        }
        .action-buttons-container {
          width: 50px;
          .btn.btn-link {
            padding: 5px;
          }
        }
      }
    }
    &:hover {
      background: $rule_row_bg_color;
    }
  }
}
